package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account  string `gorm:"type:varchar(30);not null;comment:账号"`
	Password string `gorm:"type:char(11);not null;comment:密码"`
}

type Novel struct {
	gorm.Model
	UserId  int    `gorm:"type:int(11);not null;comment:用户id"`
	Title   string `gorm:"varchar(30);not null;comment:小说标题"`
	Profile string `gorm:"varchar(500);not null;comment:小说简介"`
	Types   string `gorm:"varchar(30);not null;comment:小说分类"`
}
